import request from "@/utils/request";

export function findTruckBillListByBillNo(page = 1, pageSize = 10, billNo = '') {
    return request({
        url: '/mobile/truckBill/truckBillList',
        method: 'get',
        params: {
            page,
            pageSize,
            billNo
        }
    })
}

export function findAllBillNo(billNo = '') {
    return request({
        url: '/mobile/truckBill/billNoList',
        method: 'get',
        params: { billNo } // 确保参数名正确
    })
}

export function findBillNoByDeviceId(deviceId = 0) {
    return request({
        url: `/mobile/truckBill/findBillNoByDeviceId/${deviceId}`,
        method: 'get'
    })
}

export function findPlateNoByDeviceId(deviceId = 0) {
    return request({
        url: `/mobile/truckBill/findPlateNoByDeviceId/${deviceId}`,
        method: 'get'
    })
}

export function findOpUserNameByDeviceId(deviceId = 0) {
    return request({
        url: `/mobile/truckBill/findOpUserNameByDeviceId/${deviceId}`,
        method: 'get'
    })
}
